using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace DocLibApp
{
    public partial class FormAudit : FormBase
    {
        private string DocumentID = "";

        public FormAudit(string doc_id)
        {
            InitializeComponent();
            DocumentID = doc_id;

            GetDocumentAuditInfo();
        }

        private void GetDocumentAuditInfo()
        {
            System.Collections.ArrayList alist = doc_operation.GetDocumentAuditTrail(DocumentID);
            if (alist.Count > 1)
            {
                lsv_AuditInfo.ShowData(alist, "EVENT_ID", def.tb_doc_audit);
            }
            else
            {
                this.Text = "[" + DocumentID + "] no audit trail information";
            }
        }
    }
}